﻿
namespace AMM.Forms.Reports.ReportUserControls {
    public partial class RequirementAnalysisReportSearchControl : BaseReportSearchControl {

        public override string ReportName {
            get { return "RequirementAnalysisReport.rdlc"; }
        }

        public override object CrossedThreadOperation() {
            string produceConductsS = this.tbProduceConducts.Text;
            string materialCodeS = this.tbMaterialCode.Text;
            int conditionTypeIndex = this.cmbConditionType.SelectedIndex;

            return this._reportProcessor.GetRequirementAnalysisProcedureList(conditionTypeIndex, materialCodeS, produceConductsS);
        }

        public override void ResetSearch() {
            this.tbProduceConducts.Clear();
            this.tbMaterialCode.Clear();
            this.cmbConditionType.SelectedIndex = 0;
        }

        public RequirementAnalysisReportSearchControl() {
            this.InitializeComponent();
            this.ResetSearch();
        }
    }
}
